package com.example.demo.mapper;

import com.example.demo.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 文章持久层
 */

@Mapper
public interface ArticleMapper {

    List<ArticleInfo> getList(@Param("uid") Integer uid);
    /**
     * 查询文章的所有信息
     */
    ArticleInfo queryArticle(@Param("aid") Integer aid);
}
